package cn.chinaunicom.mini.program.dingtalk.events.event;

import com.dingtalk.open.app.api.message.GenericOpenDingTalkEvent;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @ProjectName: dingtalk-property
 * @Package: cn.chinaunicom.property.event.event
 * @ClassName: DingTalkEvent
 * @Description: 钉钉事件和应用事件适配类
 * @Author: wangjc
 * @CreateDate: 2024/6/5
 * @UpdateUser: wangjc
 * @UpdateDate: 2024/6/5
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
@Getter
public abstract class DingTalkEvent extends ApplicationEvent {

    /**
     *  钉钉事件
     */
    private GenericOpenDingTalkEvent dingTalkEvent;

    public DingTalkEvent(Object source, GenericOpenDingTalkEvent dingTalkEvent) {
        super(source);
        this.dingTalkEvent = dingTalkEvent;
    }
}
